<?php echo $this->fetch('header.html'); ?>
<div class="row">
<div class="span12">
<ul class="nav nav-tabs">
<li class="active"><a href="<?php echo $this->_var['appadmin']; ?>?m=sysmsg">系统消息管理</a></li>
<li><a href="<?php echo $this->_var['appadmin']; ?>?m=sysmsg&a=add">系统消息添加</a></li>
</ul>
<table class="table table-bordered" width="100%">
<tr>
	<td width="5%">ID</td>
    <td width="31%">标题</td>
    <td width="10%">状态</td>
    <td width="19%">开始时间</td>
    <td width="25%">结束时间</td>
    <td width="10%">操作</td>
</tr>
<?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
<tr>
  <td><?php echo $this->_var['c']['id']; ?></td>
  <td><?php echo $this->_var['c']['title']; ?></td>
  <td><?php if ($this->_var['c']['status']): ?>正常<?php else: ?>禁止<?php endif; ?></td>
  <td><?php echo date("Y-m-d H:m",$this->_var['c']['start_time']); ?></td>
  <td><?php echo date("Y-m-d H:m",$this->_var['c']['end_time']); ?></td>
  <td><a href="admin.php?m=sysmsg&a=add&id=<?php echo $this->_var['c']['id']; ?>">编辑</a> 
  <a href="javascript:;" class="delete" url="admin.php?m=sysmsg&a=delete&id=<?php echo $this->_var['c']['id']; ?>">删除</a></td>
</tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
 
</table>
<?php echo $this->_var['pagelist']; ?>
</div>
</div>

<?php echo $this->fetch('footer.html'); ?>